//,引入常量
import {INCREAMENTCOUNT,DECREAMENTCOUNT} from "../constant/countConst"


//提取action
export const incrementAction = (data = 1)=>{
    //返回action数据,action接收一个对象格式的数据
    return {
        type: INCREAMENTCOUNT,
        data: 1
    }
}

export const decreamentAction = (data = 1)=>{
    //返回action数据,action接收一个对象格式的数据
    return {
        type: DECREAMENTCOUNT,
        data: 1
    }
}